//
//  YHBaseViewController.m
//  TestYoho
//
//  Created by YiDarren on 17/1/20.
//  Copyright © 2017年 YiDarren. All rights reserved.
//

#import "YHBaseViewController.h"

@interface YHBaseViewController ()

@end

@implementation YHBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];

}


- (void)addBackButton {
    
    self.navigationItem.hidesBackButton = YES;

    UIBarButtonItem *barButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"back_9x16"] style:UIBarButtonItemStylePlain target:self action:@selector(backBarButtonItemClickedAction)];
    
    self.navigationItem.leftBarButtonItem = barButtonItem;
    
}

- (void)backBarButtonItemClickedAction {
    
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}



@end
